﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EngineAccessLayer;
using EngineAccessLayer.Impl;
using System.IO.Ports;

namespace Tester
{
    class Program
    {
        static void Main(string[] args)
        {
            foreach (string s in SerialPort.GetPortNames()) Console.WriteLine(s);

            EngineAccess engineAccess = new EngineAccess(5);
            
            engineAccess.SetPinHeight(0, 8);
            Console.WriteLine("-------------------------");
            engineAccess.SetPinHeight(0, 8.3);
            Console.WriteLine("-------------------------");
            engineAccess.SetPinHeight(0, 5);
            Console.WriteLine("-------------------------");
            engineAccess.SetPinHeight(0, 5.6);
            Console.WriteLine("-------------------------");

            engineAccess.Close();

            Console.ReadLine();
        }
    }
}
